package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品主对象 goods
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品SPU ID */
    private Long spuId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 现价（单位：分） */
    @Excel(name = "现价", readConverterExp = "单=位：分")
    private Long price;

    /** 原价（单位：分） */
    @Excel(name = "原价", readConverterExp = "单=位：分")
    private Long originPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /** 商品图片数组 */
    @Excel(name = "商品图片数组")
    private String images;

    public void setSpuId(Long spuId) 
    {
        this.spuId = spuId;
    }

    public Long getSpuId() 
    {
        return spuId;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }

    public void setOriginPrice(Long originPrice) 
    {
        this.originPrice = originPrice;
    }

    public Long getOriginPrice() 
    {
        return originPrice;
    }

    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spuId", getSpuId())
            .append("goodsName", getGoodsName())
            .append("description", getDescription())
            .append("price", getPrice())
            .append("originPrice", getOriginPrice())
            .append("stockQuantity", getStockQuantity())
            .append("images", getImages())
            .toString();
    }
}
